package com.flower.service.impl;

import com.flower.dao.UserMapper;
import com.flower.pojo.Flower;
import com.flower.pojo.Imgs;
import com.flower.pojo.Store;
import com.flower.pojo.User;
import com.flower.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public int UserInformationUpdate(User user) {
        return userMapper.UserInformationUpdate(user);
    }

    @Override
    public User queryById(Integer uid) {
        return userMapper.queryById(uid);
    }

    @Override
    public List<Store> queryStoreByName(String sname) {
        return userMapper.queryStoreByName(sname);
    }

    @Override
    public List<Flower> queryFlowerByName(Map<String, Object> map) {
        return userMapper.queryFlowerByName(map);
    }

    @Override
    public Flower queryFlowerByFid(Integer fid) {
        return userMapper.queryFlowerByFid(fid);
    }

    @Override
    public List<Imgs> queryImgsByFid(Integer fid) {
        return userMapper.queryImgsByFid(fid);
    }

}
